# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer:
pkgname=py3-authlib
pkgver=1.3.0
pkgrel=0
pkgdesc="Python library for building OAuth and OpenID Connect servers"
url="https://github.com/lepture/authlib"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-cryptography"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
#checkdepends="py3-django py3-flask-sqlalchemy"
options="!check" # missing deps: py3-httpx, py3-starlette,py3-pytest-django
subpackages="$pkgname-pyc"
source="https://pypi.io/packages/source/A/Authlib/Authlib-$pkgver.tar.gz"
builddir="$srcdir/Authlib-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 setup.py test
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/Authlib*.whl
}

sha512sums="
86cb56123445b27fccb410d4440618378a6235d3d07b53a0f0e9ca3b409a3844aa1eca776124082e3f7dbb33d00385eb5146793545fc7c5956b0be4a18edb3a6  Authlib-1.3.0.tar.gz
"
